package com.kczd.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.kczd.client.R;
import com.kczd.util.SysApplication;


public class WalletActivity extends AppCompatActivity implements View.OnClickListener{

    private ImageView mImage_back;
    private Button mWeixin,mZhifubao;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wallet);

        initViews();
        // 多activity管理
        SysApplication.getInstance().addActivity(this);
    }

    private void initViews() {

        mImage_back= (ImageView) findViewById(R.id.iv_back);
        mWeixin= (Button) findViewById(R.id.btn_weixin);
        mZhifubao= (Button) findViewById(R.id.btn_zhifubao);

        mImage_back.setOnClickListener(this);
        mWeixin.setOnClickListener(this);
        mZhifubao.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.iv_back:
                finish();
                break;
            case R.id.btn_weixin:
//                Intent intent=new Intent(WalletActivity.this,PayActivity.class);
//                intent.putExtra("channel","微信");
//                startActivity(intent);
                    break;
            case R.id.btn_zhifubao:
//                Intent intent1=new Intent(WalletActivity.this,PayActivity.class);
//                intent1.putExtra("channel","支付宝");
//                startActivity(intent1);
                break;

        }
    }

}
